/*
 * @Descripttion:
 * @version:
 * @Author: congsir
 * @Date: 2023-10-24 21:30:01
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-10-24 21:37:08
 */
import React, { memo } from "react";
import { HeaderWrapper } from "./style";

export default memo(function SectionHeader({ title, subtitle }) {
  return (
    <HeaderWrapper>
      <h2 className="title">{title}</h2>
      {subtitle && <div className="subtitle">{subtitle}</div>}
    </HeaderWrapper>
  );
});
